import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
// import { CatsModule } from './cats.module';
import { ValidationPipe } from "./common/pipe/validation.class.pipe"

async function bootstrap() {
  const app = await NestFactory.create(AppModule, { cors: true })
  // .create(CatsModule);
  // app.useGlobalPipes(new ValidationPipe()); // 参数验证
  // app.useGlobalGuards(new RolesGuard()); // 基于角色的身份验证
  await app.listen(3000);
}
bootstrap();
